package com.bafa.front.utils;

import com.bafa.jdbc.DBAccess;

public class JSPUtils {

	
	public static boolean isPricesDisplayed(){
		DBAccess db = new DBAccess();
		return (db.retrieveReference("showprices").equalsIgnoreCase("true"));
	}
	
	public static boolean isUpdatesEnabled(){
		DBAccess db = new DBAccess();
		return (db.retrieveReference("enableupdates").equalsIgnoreCase("true"));
	}
	
	public static boolean isDisplayed(String reference){
		DBAccess db = new DBAccess();
		return (db.retrieveReference(reference).equalsIgnoreCase("true"));
	}
	
	public static String getTeamPhoto(String teamname){
		DBAccess db = new DBAccess();
		return db.retrievePhoto(teamname+"mainphoto");
	}
}
